﻿namespace Steamworks
{
    using System;

    public static class SteamMusic
    {
        public static bool BIsEnabled()
        {
            InteropHelp.TestIfAvailableClient();
            return NativeMethods.ISteamMusic_BIsEnabled();
        }

        public static bool BIsPlaying()
        {
            InteropHelp.TestIfAvailableClient();
            return NativeMethods.ISteamMusic_BIsPlaying();
        }

        public static AudioPlayback_Status GetPlaybackStatus()
        {
            InteropHelp.TestIfAvailableClient();
            return NativeMethods.ISteamMusic_GetPlaybackStatus();
        }

        public static float GetVolume()
        {
            InteropHelp.TestIfAvailableClient();
            return NativeMethods.ISteamMusic_GetVolume();
        }

        public static void Pause()
        {
            InteropHelp.TestIfAvailableClient();
            NativeMethods.ISteamMusic_Pause();
        }

        public static void Play()
        {
            InteropHelp.TestIfAvailableClient();
            NativeMethods.ISteamMusic_Play();
        }

        public static void PlayNext()
        {
            InteropHelp.TestIfAvailableClient();
            NativeMethods.ISteamMusic_PlayNext();
        }

        public static void PlayPrevious()
        {
            InteropHelp.TestIfAvailableClient();
            NativeMethods.ISteamMusic_PlayPrevious();
        }

        public static void SetVolume(float flVolume)
        {
            InteropHelp.TestIfAvailableClient();
            NativeMethods.ISteamMusic_SetVolume(flVolume);
        }
    }
}

